<ul class="breadcrumb">    
    <li class="active"><b><?php echo __('//nameCaption//'); ?></b><!-- &nbsp;&nbsp;&nbsp;&nbsp;<i class="icon-info-sign"></i> --></li>
    <li style="float:right;margin-top: -5px;">
        <?php //echo $this->Html->link('<i class="icon-plus"></i>' . __('New //nameClass_singularize//'), array('action' => 'add'), array('class' => 'btn', 'type' => 'button', 'escape' => FALSE)); ?>
        <?php echo $this->Html->link('<i class="icon-plus"></i>' . __('Nuevo //nameCaption//'), array('action' => 'add'), array('class' => 'btn', 'type' => 'button', 'escape' => FALSE)); ?>
    </li>
</ul>



    <div class="autoscroll">
        <table class="table table-bordered table-striped">
        <tr>
                <th><?php echo $this->Paginator->sort('id');?></th>
                //th_attrs//			
                <th class="actions">
                    <?php //echo __('Actions');?>
                    <?php echo __('Acciones');?>
                </th>
        </tr>
        <?php
        foreach ($//nameclass_pluralize// as $//nameclass_singularize//): ?>
        <tr>
            <td><?php echo $//nameclass_singularize//['//nameClass_singularize//']['id']; ?>&nbsp;</td>
            //td_attrs//	
<td class="actions">
                    <?php //echo $this->Html->link('<i class="icon-th-large"></i>' . __('View'), array('action' => 'view', $//nameclass_singularize//['//nameClass_singularize//']['id']), array('escape' => FALSE)); ?>
                    
                    <?php //echo $this->Html->link('<i class="icon-edit"></i>' . __('Edit'), array('action' => 'edit', $//nameclass_singularize//['//nameClass_singularize//']['id']), array('escape' => FALSE)); ?>
                    <?php //echo $this->Form->postLink('<i class="icon-remove"></i>' . __('Delete'), array('action' => 'delete', $//nameclass_singularize//['//nameClass_singularize//']['id']), array('escape' => FALSE), null, __('Are you sure you want to delete # %s?', $//nameclass_singularize//['//nameClass_singularize//']['id'])); ?>
                    
                    <?php echo $this->Html->link('<i class="icon-th-large"></i>' . __('Ver'), array('action' => 'view', $//nameclass_singularize//['//nameClass_singularize//']['id']), array('escape' => FALSE)); ?>
                    //action_report//
                    <?php echo $this->Html->link('<i class="icon-edit"></i>' . __('Editar'), array('action' => 'edit', $//nameclass_singularize//['//nameClass_singularize//']['id']), array('escape' => FALSE)); ?>
                    
                    <?php echo $this->Form->postLink(
                    '<i class="icon-remove"></i>' . __('Eliminar'), 
                   array('action' => 'delete', $//nameclass_singularize//['//nameClass_singularize//']['id']), array('escape' => FALSE), null, __('¿Está seguro que desea eliminar # %s?', $//nameclass_singularize//['//nameClass_singularize//']['id'])); ?>

                </td>
        </tr>
        <?php endforeach; ?>
	</table>
    </div>
	<p>
        <?php
        //echo $this->Paginator->counter(array( 'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')));        
        echo $this->Paginator->counter(array( 'format' => __('Página {:page} de {:pages}, mostrando {:current} registros de un total de {:count}, empieza en el registro {:start}, terminando en el registro {:end}')));    
        ?>	
    </p>
	
<?php
if (!isset($modules)) {
    $modulus = 11;
}
if (!isset($model)) {
    $models = ClassRegistry::keys();
    $model = Inflector::camelize(current($models));
}
?>
<div class="pagination">
    <ul>
        <?php echo $this->Paginator->first('<<', array('tag' => 'li')); ?>
        <?php
        echo $this->Paginator->prev('<', array(
            'tag' => 'li',
            'class' => 'prev',
                ), $this->Paginator->link('<', array()), array(
            'tag' => 'li',
            'escape' => false,
            'class' => 'prev disabled',
        ));
        ?>
        <?php
        $page = $this->params['paging'][$model]['page'];
        $pageCount = $this->params['paging'][$model]['pageCount'];
        if ($modulus > $pageCount) {
            $modulus = $pageCount;
        }
        $start = $page - intval($modulus / 2);
        if ($start < 1) {
            $start = 1;
        }
        $end = $start + $modulus;
        if ($end > $pageCount) {
            $end = $pageCount + 1;
            $start = $end - $modulus;
        }
        for ($i = $start; $i < $end; $i++) {
            $url = array('page' => $i);
            $class = null;
            if ($i == $page) {
                $url = array();
                $class = 'active';
            }
            echo $this->Html->tag('li', $this->Paginator->link($i, $url), array(
                'class' => $class,
            ));
        }
        ?>
        <?php
        echo $this->Paginator->next('>', array(
            'tag' => 'li',
            'class' => 'next',
                ), $this->Paginator->link('>', array()), array(
            'tag' => 'li',
            'escape' => false,
            'class' => 'next disabled',
        ));
        ?>
        <?php
        echo str_replace('<>', '', $this->Html->tag('li', $this->Paginator->last('>>', array(
                            'tag' => null,
                        )), array(
                    'class' => 'next',
                )));
        ?>
    </ul>
</div>

